<? 
	$attributes = array('class' => 'email', 'id' => 'checknew');
	echo form_open('product/dels', $attributes);
?>    
<input type="hidden" name="page" value="<?=$start?>">
<table class="admindata">
    <thead>
        <tr>
            <th colspan="7">
                <input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="Xóa">
                Hiện có <?=$num?> chuyên mục <?=$pagination?>
            </th>
        </tr>
        <tr>
            <th width="20" class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
            <th width="47">Hình ảnh</th>
            <th width="82">Banner</th>
            <th width="65"><?=lang('category_name');?></th>
            <th width="">Chủ đề</th>			
            <th width="40">Ngày</th>
            <th width="90" class="publish" style="width: 90px;">Active</th>
        </tr>                
    </thead>
    <?
    $k=1;
	//$this->load->config('config_category');
	include ROOT.'/data/config_category.php';
    foreach($list as $rs):
		$lb_image = $rs->lb_image? '<img src="'.base_url_site().'uploads/product/'.$rs->lb_image.'" width="60" />' : '' ;
		$pro_banner = $rs->lb_image? '<img src="'.base_url_site().'uploads/product/banner/'.$rs->pro_banner.'" width="300" />' : '' ;
	?>
    <tr class="row<?=$k?>">
        <td><input type="checkbox" name="ar_id[]" value="<?=$rs->pro_id?>"></td>
        <td><?=$lb_image?></td>
        <td><?=$pro_banner?></td>
        <td><?=$config["$rs->catid"]?></td>
        <td><?=$rs->name_vn?></td>
        <td style="text-align:center;"><?=datevn($rs->dt_modify)?></td>
        <td align="center">
            <?=icon_edit('product/edit/'.$rs->pro_id)?>
            <span id="publish<?=$rs->pro_id?>"><?=icon_active("'product'","'pro_id'",$rs->pro_id,$rs->bl_active)?></span>
            <?=icon_del('product/del/'.$rs->pro_id.'/'.(int)$this->uri->segment(4))?>
        </td>
    </tr>
    <?php
    endforeach;
	?>
    <tfoot>
        <td colspan="7">
            <input type="submit" class="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
            Hiện có <?=$num?> chuyên mục <?=$pagination?>
        </td>
    <td width="4"></tfoot>
</table>  
<?=form_close()?>